package com.xin.springclouduser.service;

import com.xin.springclouduser.dto.UserDTO;
import com.xin.springclouduser.form.UserForm;
import com.xin.springclouduser.vo.ResultPage;
import org.springframework.data.domain.Pageable;

public interface UserService {
    //创建用户
    UserDTO create(UserForm userForm);
    //更新用户
    UserDTO update(UserForm userForm);
    //删除用户
    boolean delete(String id);
    //查询用户
    UserDTO findOne(String id);
    //模糊查询(根据昵称)
    ResultPage<UserDTO> findAllByLikeName(String nickname, Pageable pageable);
    //手机号码查询
    UserDTO findOneByPhone(String phone);
    //登录
    UserDTO login(String phone,String password);

}
